"""
print the date in list, like below:
20141028
20141029
20141030
20141031
20141101
20141102
20141103
20141104
20141105
20141106
20141107
20141108
20141109
"""

import datetime

a = datetime.datetime.today()
numdays = 100

dateList = [str(a - datetime.timedelta(days=x))[0:10]
            for x in range(0, numdays)]
dateStr = [x.replace('-', '', 2) for x in reversed(dateList)]
for x in dateStr:
    print x
